<?php
/**
 * @desc 公用头部
 * @author kevin.wang
 * @date 2015-01-01 12:00:00
 */
class head extends CWidget
{    
    public function init()
    {
    }
 
    public function run()
    {
        $name = Yii::app()->controller->id;
		$model = new LoginForm();
		$result = $model->userIsLogin();
        $this->render('head', array(
            'ctrl' => $name,
			'isLogin' => $result
        ));
    }
}